// 导入封装的请求实例
import request from '@/utils/request'
// 请求方法
export const getAdvImgListApi = params => {
  return request({
    url: '/admin/ydd_advimg/list',
    method: 'get',
    params
  })
}
// 查询单个
export const getAdvImgInfoApi = params => {
  return request({
    url: '/admin/ydd_advimg/rowInfo',
    method: 'get',
    params
  })
}

// 添加
export const addAdvImgInfoApi = data => {
  return request({
    url: '/admin/ydd_advimg/add',
    method: 'post',
    data
  })
}
// 修改
export const updateAdvImgInfoApi = data => {
  return request({
    url: '/admin/ydd_advimg/update',
    method: 'post',
    data
  })
}
// 删除
export const delAdvImgInfoApi = params => {
  return request({
    url: '/admin/ydd_advimg/del',
    method: 'get',
    params
  })
}